/*
package my.mark.mybaibaoxiang.twotiger.contract.utils;

import cfca.kt.toolkit.ClientContext;
import cfca.ra.toolkit.RAClient;
import cfca.ra.toolkit.exception.RATKException;
import com.twotiger.contract.constant.ConfigConst;

public class CfcaUtils {
    
    // 连接超时时间 毫秒
    public static final int connectTimeout = 6000;
    // 读取超时时间 毫秒
    public static final int readTimeout = 50000;

    */
/**
     * 连接RA系统
     * 
     * @return
     * @throws RATKException 
     *//*

    public static RAClient getRAClient() throws RATKException {
        int type = 1;
        RAClient client = null;
        switch (type) {
        case 1:
            // 初始化为http连接方式，指定url
            client = new RAClient(ConfigConst.CFCA_URL, connectTimeout, readTimeout);
            break;
        case 2:
            // 初始化为https连接方式，指定url，另需配置ssl的证书及信任证书链
            client = new RAClient(ConfigConst.CFCA_URL, connectTimeout, readTimeout);
            client.initSSL(ConfigConst.CFCA_KEYSTOREPATH, ConfigConst.CFCA_KEYSTOREPASSWORD, ConfigConst.CFCA_TRUSTSTOREPATH, ConfigConst.CFCA_TRUSTSTOREPASSWORD);
            // 如需指定ssl协议、算法、证书库类型，使用如下方式
            // client.initSSL(keyStorePath, keyStorePassword, trustStorePath, trustStorePassword, "SSL", "IbmX509", "IbmX509", "JKS", "JKS");
            break;
        case 3:
            // 初始化为socket 连接方式，指定ip和端口
            client = new RAClient(ConfigConst.CFCA_IP, ConfigConst.CFCA_RA_PORT, connectTimeout, readTimeout);
            break;
        case 4:
            // 初始化为ssl socket 连接方式，指定ip和端口，另需配置ssl的证书及信任证书链
            client = new RAClient(ConfigConst.CFCA_IP, ConfigConst.CFCA_RA_PORT, connectTimeout, readTimeout);
            client.initSSL(ConfigConst.CFCA_KEYSTOREPATH, ConfigConst.CFCA_KEYSTOREPASSWORD, ConfigConst.CFCA_TRUSTSTOREPATH, ConfigConst.CFCA_TRUSTSTOREPASSWORD);
            // 如需指定ssl协议、算法、证书库类型，使用如下方式
            // client.initSSL(keyStorePath, keyStorePassword, trustStorePath, trustStorePassword, "SSL", "IbmX509", "IbmX509", "JKS", "JKS");
            break;
        default:
            break;
        }
        return client;
    }
    
    */
/**
     * 连接KT系统
     * 
     * @return
     *//*

    public static ClientContext getCFCARAClientContext() {
        ClientContext client = null;
        // 初始化连接。
        ClientContext.initSocket(ConfigConst.CFCA_IP, ConfigConst.CFCA_KT_PORT, connectTimeout, readTimeout);
        client = ClientContext.getInstance();
        return client;
    }
    
}
*/
